<?php
/**
 * Created by PhpStorm.
 * User: yancheng<cheng@love.xiaoyan.me>
 * Date: 2019/3/2
 * Time: 12:02 PM
 */
include 'inc/env.php';
$login_user = get_current_login_user();
//判断是否已经登录
if (empty($login_user)) {
    //跳转
    header('Location: login.html');
    exit;
}
?>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<?php
$user_data = print_r($login_user, 1);
echo "登录用户数据如下:<pre>{$user_data}</pre>";
?>
</body>
</html>